package com.example.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class News {
    private Integer id;
    private String title;
    private Date publishDate;
    private String content;
    private String image;


    public News() {
    }

    public News(Integer id, String title, Date publishDate, String content, String image) {
        this.id = id;
        this.title = title;
        this.publishDate = publishDate;
        this.content = content;
        this.image = image;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
}
